package com.saer.client.menu.items;

import com.smartgwt.client.types.AnimationEffect;
import com.smartgwt.client.widgets.menu.Menu;
import com.smartgwt.client.widgets.menu.MenuItem;
import com.smartgwt.client.widgets.toolbar.ToolStripMenuButton;

public class AdministrationMenuButton extends ToolStripMenuButton {

	private Menu administrationMenu = new Menu();

	public AdministrationMenuButton() {
		super("Administracion");

		this.setMenuAnimationEffect(AnimationEffect.SLIDE.getValue());
		this.administrationMenu.setShowShadow(true);
		this.administrationMenu.setShadowDepth(10);
		this.administrationMenu.setWidth(200);

		MenuItem userPermissionsItem = new MenuItem("Permisos de Usuario");
		userPermissionsItem.setEnabled(false);
		// if (SaerEntryPoint.getUserInfo().getUserType().equals('A')) {
		// userPermissionsItem.setEnabled(!diabledScreens.remove("userpermissions"));
		// }

		this.administrationMenu.setItems(userPermissionsItem);

		this.setMenu(administrationMenu);
	}

}